{% extends 'base.html' %}
{% block title %}
    <title>首页</title>
{% endblock %}

{% block body %}
<!--    <p>{{ cs }}</p>-->
<!--    {% for b in cs %}-->
<!--        {{ b }}-{{ forloop.first }}-->
<!--    {% endfor %}-->


    <h1>这是收藏页</h1>
<ul class="list-group">
        {% for c in cs %}
    <li class="list-group-item">
        <a href="{% url 'main:detail' c.book.id %}">{{ c.book.title }}</a>
    </li>
        {% endfor %}
</ul>





{% endblock %}